package comdemo.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author 沈仁聪
 * @since 2025-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orders")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单的ID
     */
    @TableId(value = "orderid", type = IdType.AUTO)
    private Integer orderid;

    /**
     * 教练的ID
     */
    private Integer coachid;

    /**
     * 用户的ID
     */
    private Integer userid;

    /**
     * 支付的金额
     */
    private Double price;

    /**
     * 订单生成的时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime time;

    /**
     * 订单的状态（已支付，已确认，训练中，已完成）
     */
    private String status;

    /**
     * 订单备注
     */
    private String ordernotes;


}
